<?php

namespace App\Providers;

use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
        'App\Events\AuthStepEvent' => [
            'App\Listeners\AuthStepEventListener',
        ],
        'App\Events\SettingLogEvent' => [
            'App\Listeners\SettingLogEventListener',
        ],
        //轮询授信结果事件
        'App\Events\UserLoanRequestQueryResultEvent' => [
            'App\Listeners\UserLoanRequestQueryResultEventListener',
        ],
        'App\Events\UserLoanApplyEvent' => [
              'App\Listeners\UserLoanApplyEventListener',
        ],

        //上传身份证事件
        'App\Events\UploadIdCardEvent' => [
            'App\Listeners\UploadIdCardEventListener',
        ],
        //处理风控结果事件
        'App\Events\RiskResultEvent' => [
            'App\Listeners\RiskResultEventListener',
        ],
        //申请授信事件
        'App\Events\LoanRequestApplyEvent' => [
            'App\Listeners\LoanRequestApplyEventListener',
        ],
        //后台发送消息事件
        'App\Events\MessageSendEvent' => [
            'App\Listeners\MessageSendListener',
        ],
        //记录重试授信事件
        'App\Events\LoanRequestRetryEvent' => [
            'App\Listeners\LoanRequestRetryEventListener',
        ],

        /**
         * 极光推送
         */
        //通知栏推送
        'App\Events\JpushNoticeEvent' => [
            'App\Listeners\JpushNoticeListener'
        ],

        'App\Events\SmsSendEvent' => [
            'App\Listeners\SmsSendListener'
        ],

        /**
         * 催收回执接口
         */
        'App\Events\CollectionReceiptEvent' => [
            'App\Listeners\CollectionReceiptListener'
        ],

        /*
         * Test
         */
        'App\Events\TestEvent' => [
            'App\Listeners\TestListener',
        ],
        'App\Events\TestBroadcastEvent' => [
            'App\Listeners\TestBroadcastListener',
        ],
        'App\Events\TestQueueEvent' => [
            'App\Listeners\TestQueueListener',
        ],
        'App\Events\RepayMentEvent' => [
            'App\Listeners\RepayMentEventListener',
        ],
        'App\Events\ActiveDeductionEvent' => [
            'App\Listeners\ActiveDeductionEventListener',
        ],
        'App\Events\NewFlowOrderEvent' => [
            'App\Listeners\NewFlowOrderEventListener',
        ],
        /*
         * 代扣回执事件
         */
        'App\Events\WithHoldEvent' => [
            'App\Listeners\WithHoldEventListener',
        ],
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }

    /**
     * 需要注册的订阅者类。
     *
     * @var array
     */
    protected $subscribe = [
    ];
}
